package service

import "gin-study/model"

type HelloService struct {
}

func NewHelloService() *HelloService {
	return &HelloService{}
}

func (h *HelloService) GetHelloMessage(name string) *model.HelloMessage {
	return &model.HelloMessage{
		Message: "Hello, " + name + "!",
		Name:    name,
	}
}

func (h *HelloService) GetPersonalizedMessage(name string) *model.HelloMessage {
	return &model.HelloMessage{
		Message: "Nice to meet you, " + name + "!",
		Name:    name,
	}
}
